﻿using System.IO;
using System.Windows.Forms;
using Styx;
using Styx.Helpers;

namespace ShutUp
{
    public class ShutUpGlobalSettings : Settings
    {
        public static ShutUpGlobalSettings Instance = new ShutUpGlobalSettings();

        public ShutUpGlobalSettings()
            : base(Application.StartupPath + "\\Settings\\ShutUp_GlobalSettings.xml")
        {
            Load();
        }

        ~ShutUpGlobalSettings()
        {
            Save();
        }

        [Setting(Explanation = "write dbug"), DefaultValue(false)]
        public bool writeDbug { get; set; }

        [Setting(Explanation = "auto update check?"), DefaultValue(true)]
        public bool UpdateCheck { get; set; }

        [Setting(Explanation = "last update check"), DefaultValue(null)]
        public System.DateTime UpdateCheck_last { get; set; }

        //[Setting(Explanation = "wave file location"), DefaultValue("C:/MyFolder/MyWave.wav")]
        //public string myWaveLocation { get; set; }

        //[Setting(Explanation = "radom whisper answer 1"), DefaultValue("Shut up")]
        //public string rAnswerW1 { get; set; }

        //[Setting(Explanation = "radom whisper answer 2"), DefaultValue("fuck off")]
        //public string rAnswerW2 { get; set; }

        //[Setting(Explanation = "radom whisper answer 3"), DefaultValue("let me alone")]
        //public string rAnswerW3 { get; set; }

        //[Setting(Explanation = "radom whisper answer 4"), DefaultValue("??")]
        //public string rAnswerW4 { get; set; }

        //[Setting(Explanation = "radom BG answer 1"), DefaultValue("shut up")]
        //public string rAnswerBG1 { get; set; }

        //[Setting(Explanation = "radom BG answer 2"), DefaultValue("gogo")]
        //public string rAnswerBG2 { get; set; }

        //[Setting(Explanation = "radom BG answer 3"), DefaultValue("fuck off")]
        //public string rAnswerBG3 { get; set; }

        //[Setting(Explanation = "radom BG answer 4"), DefaultValue("??")]
        //public string rAnswerBG4 { get; set; }

        //[Setting(Explanation = "chat contain 1"), DefaultValue("hi")]
        //public string contain1 { get; set; }

        //[Setting(Explanation = "chat contain 2"), DefaultValue("?")]
        //public string contain2 { get; set; }

        //[Setting(Explanation = "chat contain 3"), DefaultValue("help")]
        //public string contain3 { get; set; }

        //[Setting(Explanation = "chat contain 4"), DefaultValue("bot")]
        //public string contain4 { get; set; }

        //[Setting(Explanation = "answer -> contain 1"), DefaultValue("Hi!")]
        //public string answerContain1 { get; set; }

        //[Setting(Explanation = "answer -> contain 2"), DefaultValue("no thanks")]
        //public string answerContain2 { get; set; }

        //[Setting(Explanation = "answer -> contain 3"), DefaultValue("sry no time")]
        //public string answerContain3 { get; set; }

        //[Setting(Explanation = "answer -> contain 4"), DefaultValue("your mother is a bot!")]
        //public string answerContain4 { get; set; }

        [Setting(Explanation = "global friendlist"), DefaultValue(null)]
        public string[] FriendList1 { get; set; }

        [Setting(Explanation = "Soundfile list"), DefaultValue(null)]
        public string[] soundFiles { get; set; }

        [Setting(Explanation = "random answer"), DefaultValue(null)]
        public string[] randomAnswer { get; set; }

        [Setting(Explanation = "specificAnswer contain"), DefaultValue(null)]
        public string[] specificAnswer_contain { get; set; }

        [Setting(Explanation = "specificAnswer replay"), DefaultValue(null)]
        public string[] specificAnswer_replay { get; set; }

        [Setting(Explanation = "myName List"), DefaultValue(null)]
        public string[] myName_list { get; set; }

        [Setting(Explanation = "show a popup"), DefaultValue(true)]
        public bool myName_showPopUp { get; set; }

        [Setting(Explanation = "check party chat"), DefaultValue(true)]
        public bool myName_check_party { get; set; }

        [Setting(Explanation = "check guild chat"), DefaultValue(true)]
        public bool myName_check_guild { get; set; }

        [Setting(Explanation = "check raid chat"), DefaultValue(true)]
        public bool myName_check_raid { get; set; }

        [Setting(Explanation = "check bg chat"), DefaultValue(true)]
        public bool myName_check_bg { get; set; }

        [Setting(Explanation = "check say chat"), DefaultValue(true)]
        public bool myName_check_say { get; set; }

        [Setting(Explanation = "check yell chat"), DefaultValue(true)]
        public bool myName_check_yell { get; set; }

        //[Setting(Explanation = "answer whisper"), DefaultValue("I'm sorry, but I have no more time! I'm already too late..")]
        //public string answerGMwhisper { get; set; }

    }
}

